<extend name="Public/layout" />

<block name="content">
    <section class="wrapper site-min-height">
        <section class="panel">
            <header class="panel-heading">
                网站设置
            <span class="pull-right">
                <button type="button" class="btn btn-warning btn-xs" onclick="window.location.reload()">
                    <i class="fa fa-refresh"></i> 刷新
                </button>
            </span>
            </header>

            <div class="panel-body">
                <section class="panel">
                    <header class="panel-heading">
                        <ul class="nav nav-tabs">
                            <li class="active">
                                <a href="#base" data-toggle="tab" aria-expanded="true">
                                    基本设置
                                </a>
                            </li>
                            <li class="">
                                <a href="#email" data-toggle="tab" aria-expanded="false">
                                    邮件配置
                                </a>
                            </li>
                            <li class="">
                                <a href="#sms" data-toggle="tab" aria-expanded="false">
                                    短信配置
                                </a>
                            </li>
                            <li class="">
                                <a href="#payment" data-toggle="tab" aria-expanded="false">
                                    支付设置
                                </a>
                            </li>
                            <li class="">
                                <a href="#wexin" data-toggle="tab" aria-expanded="false">
                                    微信设置
                                </a>
                            </li>
                        </ul>
                    </header>
                    <div class="panel-body">
                        <form  role="form" class="ajax-from-submit" method="post" action="{:U('Admin/System/edit')}">
                            <div class="tab-content">
                                <!--基本设置-->
                                <div class="tab-pane active" id="base">
                                    <div class="form-group">
                                        <label>网站标题</label>
                                        <input name="system[web_title]" value="{$system.web_title}" type="text" class="form-control" placeholder="网站标题">
                                    </div>
                                    <div class="form-group">
                                        <label>网站关键字</label>
                                        <input name="system[web_keywords]"  value="{$system.web_keywords}" type="text" class="form-control" placeholder="网站关键字">
                                    </div>
                                    <div class="form-group">
                                        <label>网站描述</label>
                                        <textarea name="system[web_description]" class="form-control"  placeholder="网站描述">{$system.web_description}</textarea>
                                    </div>
                                    <div class="form-group">
                                        <label>网站底部</label>
                                        <input name="system[web_foot]" value="{$system.web_foot}" type="text" class="form-control" placeholder="网站底部文字(如Copyright @ 2013-2016 京ICP备XXXXX号 XXXX)">
                                    </div>
                                </div>
                                <!--邮件设置-->
                                <div class="tab-pane" id="email">
                                    <div class="form-group">
                                        <label>邮件服务器</label>
                                        <input name="system[mail_server]" type="text" class="form-control" placeholder="SMTP邮件服务器">
                                    </div>
                                    <div class="form-group">
                                        <label>邮件端口</label>
                                        <input name="system[mail_port]" type="text" class="form-control" placeholder="SMTP邮件端口">
                                    </div>
                                    <div class="form-group">
                                        <label>邮件帐号</label>
                                        <input name="system[mail_user]" class="form-control" autocomplete="off" placeholder="邮件帐号">
                                    </div>
                                    <div class="form-group">
                                        <label>邮件密码</label>
                                        <input name="system[mail_password]" type="password" class="form-control" autocomplete="off" placeholder="帐号密码">
                                    </div>
                                </div>
                                <!--短信配置-->
                                <div class="tab-pane" id="sms">
                                    暂无
                                </div>
                                <!--支付设置-->
                                <div class="tab-pane" id="payment">
                                    暂无
                                </div>
                                <!--微信设置-->
                                <div class="tab-pane" id="wexin">
                                    暂无
                                </div>
                            </div>
                            <div class="col-md-12">
                                <button id="add-max" class="btn btn-primary pull-right ajax-form-btn">保存</button>
                            </div>
                        </form>
                    </div>
                </section>

            </div>
        </section>



    </section>
</block>

<block name="javascript">
    <script>
        //菜单高亮
        MenuHighlight('{:U("Admin/System/index")}');
    </script>
</block>